<?php

/*
 * This class is used for as Model for Country table 
 */

class Model_Country extends Model_Base {

    protected $_name = 'tbl_country';
    protected $_primaryKey = 'country_id';

   
    /**
     *  This function is used to get all country
     * @return null|Zend_Db_Table_Row_Abstract
     */
    public function fetchall() {
        $select = $this->select()
                ->from(array('con' => 'tbl_country'))
                ->where('country_status != 2')
                ->order('country_name asc');
        #echo $select; exit;
        $data = parent::fetchAll($select);
        if (!empty($data)) {
            return $data->toArray();
        } else {
            return array();
        }
    }

  
}
